<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <!--th:object 声明变量，和*{} 一起使用-->
    <div th:object="${object}">
        <p>ID: <span th:text="*{id}" /></p><!--th:text="${thObject.id}"-->
        <p>TH: <span th:text="*{name}" /></p><!--${thObject.thName}-->
        <p>DE: <span th:text="*{age}" /></p><!--${thObject.desc}-->
    </div></body></html>
</body>
</html>